// 所有和【角色】相关的请求

import { httpDelete, httpGet, httpPost, httpPut } from "@/utils/http"



// 获取角色数据
export const findRoleApi = (data?: object) => {
    return httpPost('/role/find', data)
}
// 添加角色数据
export const addRoleApi = (data: object) => {
    return httpPost('/role/add', data)
}
// 删除角色数据
export const deleteRoleApi = (data: object) => {
    return httpDelete('/role/remove', data)
}
// 修改角色数据
export const updateRoleApi = (data: object) => {
    return httpPut('/role/update', data)
}
// 获取一个角色数据的详情
export const getRoleByIdApi = (data: object) => {
    return httpGet('/role/getById', data)
}